﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YYSite.Common;
using YYSite.Common.NHibernate;
using YYSite.Domain.System.IdentityUsers;

namespace YYSite.Repository.System.IdentityUsers
{
    public class IdentityUserRepository : Repository<IdentityUser>, IIdentityUserRepository
    {
        public IdentityUserRepository(ITransactionManager transactionManager) : base(transactionManager)
        {
        }

        public DataGridOutput<IdentityUser> GetIdentityUserByPage(GetIdentityUserDataGridInput input)
        {
            input.Initialize();
            string sql = "SELECT * FROM  [System].[IdentityUser] WHERE "+input.GetSQL();
            return this.Session.QueryPaged<IdentityUser>( sql,input.GetParameters(), input.GetOrderBy(),input);

        }

      
    }
}


